package com.project.myPackage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.project.myPackage.entity.Carts;
import com.project.myPackage.mapper.CartsMapper;
import com.project.myPackage.service.CartsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CartsServiceImpl extends ServiceImpl<CartsMapper, Carts> implements CartsService {
    @Autowired
    private CartsMapper cartsMapper;
    public List<Map<String,Object>> getList(Integer user_id){
      return  cartsMapper.getList(user_id);
    }
}
